package com.zlp.spring.init.entity;

import org.springframework.context.annotation.Lazy;

/**
 * User实体类
 * @date: 2021/2/24 17:47
 */
//@Lazy(value = false)
public class User {

    private String userName;
    private Integer age;

    /**
     * 密码
     */
    private String password;

    /**
     * 用户昵称
     */
    private String nickname;

    /**
     * 用户类型 （0：管理员；1：普通用户）
     */
    private Integer userType;


    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public User(){
        System.out.println("空参构造方法");
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "User{" +
                "userName='" + userName + '\'' +
                ", age=" + age +
                '}';
    }
}
